package com.cp.properties;

import com.cp.factoty.YamlPropertySourceFactory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.PropertySource;

/**
 * Des:
 * 数据库配置
 *
 * @author XL
 * @Date 2022/2/10 20:37
 */
@EqualsAndHashCode(callSuper = true)
@Data
@PropertySource(value = "classpath:cpDataSourceProperties.yaml", factory = YamlPropertySourceFactory.class)
@Primary
public class CpDataSourceProperties extends DataSourceProperties {
}
